-
Notifications
You must be signed in to change notification settings - Fork 745
/
SortFields.cs
36 lines (28 loc) · 1.7 KB
/
SortFields.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information
namespace DotNetNuke.Services.Search.Entities
{
/// <summary>Sorting criteria to be used for Querying.</summary>
public enum SortFields
{
/// <summary>Sort by Relevance [default]. Most relevant come first, SortDirection is ignored.</summary>
Relevance = 0,
/// <summary>Sort by DateTime Modified. Latest come first</summary>
LastModified = 1,
/// <summary>Sort by Title.</summary>
Title = 2,
/// <summary>Sort by Tag.</summary>
Tag = 3,
/// <summary>Sort by NumericKey (as specified in SearchDocument while indexing). The NumericKeys key-name should be specified in SearchQuery.CustomSortField</summary>
NumericKey = 4,
/// <summary>Sort by Keywords (as specified in SearchDocument while indexing). The Keywords key-name should be specified in SearchQuery.CustomSortField</summary>
Keyword = 5,
/// <summary>Specify custom numeric field for sorting. Field name should be specified in SearchQuery.CustomSortField</summary>
/// <remarks>This option should be used when you can't any of the previous options, e.g. AuthorUserId (authorid) or TabId (tab)</remarks>
CustomNumericField = 6,
/// <summary>Specify custom string filed for sorting. Field name should be specified in SearchQuery.CustomSortField</summary>
/// <remarks>This option should be used when you can't any of the previous options, e.g. authorname or UniqueKey (key)</remarks>
CustomStringField = 7,
}
}